import urllib.request
import urllib.parse


url = 'https://www.jjwxc.net/lib/getattrib.php?jsonpcallback=success_jsonpCallback20140350'
header = {
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76',
}

request = urllib.request.Request(url=url,headers=header)
response = urllib.request.urlopen(request)
content = response.read().decode('ISO-8859-1')

with open('jj.json','w',encoding='ISO-8859-1') as f:
    f.write(content)
